dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.provide("simdev.widgets.arrow");

dojo.declare("simdev.widgets.arrow", [dijit._Widget, dijit._Templated], {
    // Initialization parameters
	templatePath: dojo.moduleUrl("simdev", "templates/widgets/Arrow.html"),
	right: false,
	
	constructor: function(params, srcNodeRef){
        console.log("creating widget with params " + dojo.toJson(params) + " on node " + srcNodeRef);
        this.right = params.right;
	},
	
	postCreate: function(){
		try{
//			console.log("In Arrow:" + this.ArrowDiv);
//			//if(this.right){ this.ArrowDiv.style.class = 'ArrowRight';}
//			
//			dojo.connect(this.ArrowDiv, "onclick", this, "rotate");
//			console.log('test');
		}
		catch(e){console.log(e);}
	},
	
	rotate: function(){
//		console.log("In Rotate");
//		dojo.publish("RotateDiv",{direction:right}); 
	}
});